In this recipe we explore how to split a string into an array.
Discussion
Splitting a string into an array is very useful for writing text parsers, or counting words. Versions of Netscape Navigator before 3.0, and of Internet Explorer before 4.0, don't support the string.split() function, but this recipe has a substitute you can use for the earlier browsers.Copyright ©1998 by Charles River Media, All Rights Reserved